import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import biz.domain.User;
import biz.service.UserService;


public class Main {
	public static void main(String[] args){
		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		UserService userService = ctx.getBean(UserService.class);
		
		User user = new User();
		user.setId(1);
		user.setPass("daisuke.kikuchi123");
		user.setLock(false);
		//userService.addUser(user);
		System.out.print(userService.findUser(user));
//		List<User> list = userService.findUser();
//		System.out.println(list.get(0).getId());
//		userService.removeUser(user);
	}
}
